import request from '@/utils/request'

let IndexApi = {

  /*基础配置*/
  base(data, errorback) {
    return request._post('/shop/index/base', data, errorback);
  },

  /*商城首页*/
  getCount(data, errorback) {
    return request._postBody('/shop/index/index', data, errorback);
  },
  todoPage(data, errorback) {
    return request._postBody('/shop/order/todo/page', data, errorback);
  },
  /*商城首页*/
  todoCount(data, errorback) {
    return request._get('/shop/order/todo/count', data, errorback);
  },
  todoRead(data, errorback) {
    return request._post('/shop/order/todo/read', data, errorback);
  },

}

export default IndexApi;
